package com.wang.dao;

import com.wang.entity.Classes;
import com.wang.entity.TeacherWork;
import com.wang.entity.User;
import com.wang.entity.Work;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    public User findUser(@Param("username") String username, @Param("password") String password);
    public List<User> findMyuser(@Param("username") String username, @Param("password") String password);
    public void addUser(User user);
    public void updatePwd(@Param("password")String password,@Param("username")String username);
    public List<User> selectAll();
    public List<Work> selectStudentWork();
    public User selectTeacher1(@Param("username") String username, @Param("password") String password);
    public List<Work> selectTeacher3(@Param("cname") String cname,@Param("teacher") String teacher);
    public void addTeacher(TeacherWork work);
    public  void  delete(int id);

}
